package com.goodving.guli.activity;

import android.app.Activity;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;

import com.goodving.guli.bt.C0668a;
import com.goodving.guli.bt.profile.scale.GuliLog;
import com.goodving.guli.fragment.PersonInfoFragment;

/**
 * Created by john on 2015/12/17.
 */
public class PersonInfoActivity extends SystemBarTintActivity {
    private static final String TAG = "PersonInfoActivity";

    protected boolean isExceptForMiNote() {
        return true;
    }

    protected void onActivityResult(int i, int i2, Intent intent) {
        super.onActivityResult(i, i2, intent);
        PersonInfoFragment personInfoFragment = (PersonInfoFragment) getFragmentManager().findFragmentByTag(PersonInfoFragment.class.getName());
        GuliLog.tracePrintInfo(TAG, "person info fragment =" + personInfoFragment);
        if (personInfoFragment != null) {
            personInfoFragment.onActivityResult(i, i2, intent);
        }
    }

    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        FragmentTransaction beginTransaction = getFragmentManager().beginTransaction();
        beginTransaction.add(16908290, PersonInfoFragment.m14548c(), PersonInfoFragment.class.getName());
        beginTransaction.commit();
    }

    protected void onPause() {
        super.onPause();
        C0668a.m8138b((Activity) this);
    }

    protected void onResume() {
        super.onResume();
        C0668a.m8124a((Activity) this);
    }
}
